package my_class.reflect;

import java.lang.reflect.Constructor;

public class Test2 {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException {
        Class<?> clazz = Class.forName("my_class.reflect.Student");
        Constructor<?> constructor = clazz.getConstructor();
        System.out.println(constructor);
        Constructor<?> declaredConstructor = clazz.getDeclaredConstructor(String.class, int.class);
        System.out.println(declaredConstructor);
    }
}
